package com.sxsy.datasource.bizimpl;

import com.sxsy.datasource.bean.SwjcBean;
import com.sxsy.datasource.biz.SwjcData;
import com.sxsy.datasource.mapper.SwjcDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SwjcDataImpl implements SwjcData {


    @Autowired
    private SwjcDataMapper swjcDataMapper;

    public void RtsaveNewDevkeyValue(String key, String Wz, String Dw) {
        swjcDataMapper.RtsaveNewDevkeyValue(key,Wz,Dw);

    }


    public void RtsaveNewSsKeyValue(String key, String Value, String Date) {
        swjcDataMapper.RtsaveNewSsKeyValue(key, Value, Date);
    }


    public void RtdeleteRow(String key) {
        swjcDataMapper.RtdeleteRow(key);

    }


    public void RtupdateWz(String key, String Wz) {
        swjcDataMapper.RtupdateWz(key, Wz);
    }


    public void RtupdateDw(String key, String Dw) {
        swjcDataMapper.RtupdateDw(key, Dw);
    }


    public void HistoryTableinsert(String key,String Wz,String Dw,String Value,String Date) {
        swjcDataMapper.HistoryTableinsert( key, Wz, Dw, Value, Date);
    }


    public List<SwjcBean> DoesKeyExit() {
        return swjcDataMapper.DoesKeyExit();
    }
}
